	<style>
	<!--
	div.current select {
	    margin-bottom: 0px;
	}
	-->
	</style>
<table width="100%">
	 <tr>
	 	<td><b>Product</b></td>		
	 	<td><b>Product Code</b></td>
	 	<td><b>Confirm Code</b></td>
	 	<td><b>Exchange Date</b></td>
	 	<td><b>Points</b></td>
	 	<td><b>Cash</b></td>
	 	<td><b>Quality</b></td>		
	 	<td><b>Approved</b></td>			
	 	<td><b>Approved Date</b></td>
	 	<td>&nbsp;</td>				
	 </tr>
 <?php if(count($this->reedem) > 0): ?>
	 <?php foreach ($this->reedem as $item): ?>
	 	<tr>
	 		<td><a href="index.php?option=com_wrd&controller=profile&layout=rdetails&id=<?php echo $item->id ; ?>"><?php echo $this->p_details[$item->product_id]->name ;?></a></td>				
		 	<td><?php echo $this->p_details[$item->product_id]->p_code ; ?></td>
		 	<td><?php echo $item->code ; ?></td>
		 	<td><?php echo $item->exchange_date ; ?></td>
		 	<td><?php echo $item->point ; ?></td>
		 	<td><?php echo $item->cash ; ?></td>
		 	<td><?php echo $item->quantity ; ?></td>		
		 	<td>
			 	<?php if($item->approved == 1) : ?>
			 		<img src="<?php echo JURI::base().'components/com_wrd/assets/images/approve.png' ?>" />
			 	<?php elseif($item->approved == 0) : ?>
			 		<img src="<?php echo JURI::base().'components/com_wrd/assets/images/waiting_approve.png' ?>" />
			 	<?php elseif($item->approved == 2) : ?>
			 		<img src="<?php echo JURI::base().'components/com_wrd/assets/images/not_approve.png' ?>" />	
			 	<?php endif; ?>
		 	</td>			
		 	<td>
		 	<?php 
			 	if($item->approved_date != '0000-00-00 00:00:00') {
			 		echo $item->approved_date ;
			 	}	
		 	?>&nbsp;</td>
		 	<td>
		 		<?php 
		 			if($item->approved == 0) {
		 				echo '<a href="index.php?option=com_wrd&controller=profile&layout=redemptions&id='.$this->data->id.'&rid='.$item->id.'"><img src="components/com_wrd/assets/images/approve.png"></a>' ;
		 				echo '<a class="margin-left30" href="index.php?option=com_wrd&controller=profile&task=n_approve&id='.$this->data->id.'&rid='.$item->id.'"><img src="components/com_wrd/assets/images/not_approve.png"></a>' ;
		 			}else{
		 				if($item->approved != 2)
		 					echo '<a class="margin-left30" href="index.php?option=com_wrd&controller=profile&task=r_approve&id='.$this->data->id.'&rid='.$item->id.'"><img src="components/com_wrd/assets/images/not_approve.png"></a>' ;
		 			}
	 			?>
		 	</td>
	 	</tr>
	 <?php endforeach; ?>
 <?php endif; ?>
 </table>